/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

var ContentPipeline = new Class({
    
    Implements: [Options,Events],
    
    initialize: function(options){
        this.setOptions(options);
    },
    
    toJSON : function(request){
        //call pipeline
        new Request.JSON({
            url: this.options.url,
            onSuccess: function(responseJSON, responseText){
                request.onSuccess(responseJSON, responseText);
            }
        }).get({'do' : 'callPipeline', 'service' : request.service});        
    }
    
});
